# -*- coding:utf-8 -*-
import os,sys
import re
import traceback
import time
from datetime import datetime
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir))
import supeanut_config
from CommonLib.mylog import mylog
from SendOnline.StockInfoSend import StockInfoSend
from CommonLib.StockTool import StockTool


'''
作者：supeanut
创建时间：2016-xx-xx xx:xx:xx
功能描述：
	xxx
	xxxxx
相关配置：
	supeanut_config.XXX
历史改动：
	2016-xx-xx: xxxxxx
'''
class StockInfoJob:
	# init what
	def __init__(self):
		self.obj = StockInfoSend()

	def process(self):
		log = mylog('Crontab.StockInfo2Mongo' ,None)
		flag, msg = self.obj.upsert_date()
		if flag is False:
			log.error(msg)




if __name__ == '__main__':
	obj = StockInfoJob()
	print obj.process()
